<template>
  <div class="jl_form" @click="click">
    <div class="jl_form_item bor_bottom">
      <span class="w04" :style="color">
        <em class="font_red" v-if="required">*</em>
        {{label}}
      </span>
      <span class="w08 tr">{{text}}</span>
      <i class="fa fa-angle-right"></i>
    </div>
  </div>
</template>

<script>
  export default {
    name: "jl-from-button",
    props: {
      label: {type: String},
      required: {
        type: Boolean,
        default: false
      },
      text: {type: String},
      color: {
        type: String,
        default: 'color: gray'
      },
    },
    methods: {
      click() {
        this.$emit('click')
      }
    }
  }
</script>

<style scoped>
</style>
